package org.ymjava.medical.db.AllPackage.biz;

import com.ace.cache.annotation.Cache;
import org.springframework.stereotype.Service;

import org.ymjava.medical.db.AbstractBaseBiz.BaseBiz;
import org.ymjava.medical.db.AllPackage.entity.QuestionBank;
import org.ymjava.medical.db.AllPackage.mapper.QuestionBankMapper;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;


/**
 * 
 *
 * @author zhy
 * @email ${email}
 * @date 2020-03-30 13:12:23
 */
@Service
public class QuestionBankBiz extends BaseBiz<QuestionBankMapper,QuestionBank> {

        @Resource
        QuestionBankMapper questionBankMapper;

        @Cache(key = "question-bank-list-redis")
        public List<QuestionBank> list_bank(){
            return questionBankMapper.queryAllQuetionBank();
        }


        public List<QuestionBank> queryByUserId(Integer userId){ return questionBankMapper.queryByUserId(userId); }

}